﻿using System;
using StudentWeb.Common;

namespace StudentWeb.Model
{
	/// <summary>
	/// TravelNotes
	/// </summary>
    [Serializable]
	public class TravelNotesData
	{
		/// <summary>
		/// NoteID
        /// </summary>
        [FieldName("NoteID")]		
		public int NoteID
		{
			get;
			set;
		}
        
		/// <summary>
		/// TouristID
        /// </summary>
        [FieldName("TouristID")]		
		public int TouristID
		{
			get;
			set;
		}
        
		/// <summary>
		/// Title
        /// </summary>
        [FieldName("Title")]		
		public string Title
		{
			get;
			set;
		}
        
		/// <summary>
		/// Content
        /// </summary>
        [FieldName("Content")]		
		public string Content
		{
			get;
			set;
		}
        
		/// <summary>
		/// PublishDate
        /// </summary>
        [FieldName("PublishDate")]		
		public DateTime PublishDate
		{
			get;
			set;
		}
        
		/// <summary>
		/// Views
        /// </summary>
        [FieldName("Views")]		
		public int? Views
		{
			get;
			set;
		}
        
		/// <summary>
		/// Likes
        /// </summary>
        [FieldName("Likes")]		
		public int? Likes
		{
			get;
			set;
		}
        
        public TravelNotesData Clone()
        {
            return (TravelNotesData)this.MemberwiseClone();
        }
        
        public TravelNotesData()
        {
            Title = string.Empty;
            Content = string.Empty;
            PublishDate = ConvertHelper.DefaultDate;
        }
	}
}
